package com.chinawayltd.ews.sample.model.task;

import com.chinawayltd.ews.sample.model.TTask;
import com.chinawayltd.ews.sample.util.StringUtils;

/**
 * @program: greeProject
 * @description 运输任务与订单之间的组装类（任务列表使用
 * @author: chenxin
 * @create: 2018年4月17日 下午4:09:24
 */
public class TaskListVO extends TTask{
	private String confirmStateName; // 任务确认状态
	private String executStateName;	// 任务执行状态
	private String g7sId;	// G7车辆标识id
	private String startPlaceName;//装货站点
	private String endPlaceName;//卸货站点
	// 时间字符串合格式
	private String startTimeStr;
	private String finishTimeStr;
	private String actualStartTimeStr;
	private String actualFinishTimeStr;
	private String createTimeStr;
	private String updateTimeStr;
	private String broadPercent;//装载率
	private String lastDeliveryTimeStr;
	private String carNum;//
	public String getConfirmStateName() {
		return confirmStateName;
	}
	public void setConfirmStateName(String confirmStateName) {
		this.confirmStateName = confirmStateName;
	}
	public String getExecutStateName() {
		return executStateName;
	}
	public void setExecutStateName(String executStateName) {
		this.executStateName = executStateName;
	}
	public String getStartPlaceName() {
		return startPlaceName;
	}
	public void setStartPlaceName(String startPlaceName) {
		this.startPlaceName = startPlaceName;
	}
	public String getEndPlaceName() {
		return endPlaceName;
	}
	public void setEndPlaceName(String endPlaceName) {
		this.endPlaceName = endPlaceName;
	}
	public String getG7sId() {
		return g7sId;
	}
	public void setG7sId(String g7sId) {
		this.g7sId = g7sId;
	}
	public String getStartTimeStr() {
		return startTimeStr;
	}
	public void setStartTimeStr(String startTimeStr) {
		this.startTimeStr = startTimeStr;
	}
	public String getFinishTimeStr() {
		return finishTimeStr;
	}
	public void setFinishTimeStr(String finishTimeStr) {
		this.finishTimeStr = finishTimeStr;
	}
	public String getActualStartTimeStr() {
		return actualStartTimeStr;
	}
	public void setActualStartTimeStr(String actualStartTimeStr) {
		this.actualStartTimeStr = actualStartTimeStr;
	}
	public String getActualFinishTimeStr() {
		return actualFinishTimeStr;
	}
	public void setActualFinishTimeStr(String actualFinishTimeStr) {
		this.actualFinishTimeStr = actualFinishTimeStr;
	}
	public String getCreateTimeStr() {
		return createTimeStr;
	}
	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}
	public String getUpdateTimeStr() {
		return updateTimeStr;
	}
	public void setUpdateTimeStr(String updateTimeStr) {
		this.updateTimeStr = updateTimeStr;
	}
	public String getBroadPercent() {
		return broadPercent;
	}
	public void setBroadPercent(String broadPercent) {
		if(StringUtils.isNoneBlank(broadPercent)){
			String[] split = broadPercent.split("\\.");
			if(split.length >=1){
				broadPercent = split[0] +"%";
			}
		}
		this.broadPercent = broadPercent;
	}
	public String getLastDeliveryTimeStr() {
		return lastDeliveryTimeStr;
	}
	public void setLastDeliveryTimeStr(String lastDeliveryTimeStr) {
		this.lastDeliveryTimeStr = lastDeliveryTimeStr;
	}
	public String getCarNum() {
		return carNum;
	}
	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}
}
